<!DOCTYPE HTML>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=">
<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no">
<title>我的订单-评价</title>
<link rel="stylesheet" href="__PUBLIC__/Mobile/css/zhanghou.css">
<script src="__PUBLIC__/Mobile/js/jquery-1.9.1.js"></script>
<script src="__PUBLIC__/Common/Layer/layer.js"></script>
</head>

<body >
<section>
<!--我的订单-->
<div class="lm" style="position:fixed;">
  <a href="javascript:history.back(-1);">
    <img src="__PUBLIC__/Mobile/images/return.png" style="height:22px; padding-left:3%; line-height:22px; width:6%; padding-top:2%;" class="left">
  </a>
    <span class="left size20" style="width:85%;">我的订单 - 评价 </span>
</div>
<div class="Order-form s" style="position:fixed; margin-top: 49px; width:100%;">
  <a href="{:U('Order/order_list')}" class="hover">全部</a>
  <a href="{:U('Order/payment_list')}">待付款</a>
  <a href="{:U('Order/receipt_goods')}">待收货</a>
  <a href="{:U('Order/payments_waite')}">待评价</a>
  <a href="{:U('Order/order_end')}">待完成</a>
<!--   <a href="#">退货/换货</a> -->
</div>

<div class="shopping-cart" style="padding-top:120px;">
<script>
  $(function(){
    
      $('.margin-top').each(function(){
          var  goods_num = 0;
          $(this).find('.goods_num').each(function(){
            goods_num += parseInt($(this).val());
          });
          $(this).find('.jian_nub').html(goods_num);
      })
  })
</script>

<div style="text-align:center;">


<form name="form" method="post" action="__SELF__">

                <foreach name="result" item="vo">
<div style="margin:20px 0;">
                      <div>
                      <img style="float:left; margin-left:30px; margin-bottom:20px; width:120px; height:120px;" src="__PUBLIC__/Uploads/goods/{$vo.pic_url}" alt="" style="width:110px; height:110px; border:1px solid #CCC;">
                      <p style="font-size:14px;">套餐:{$vo.taocan_name}</p><br/>
                      <p style="font-size:14px;">{$vo.goods_title}</p>
                      </div>
                      <div style="clear:both"></div>
                      
                        <div style="margin-bottom:10px;font-size:14px;">
                          
                          <input type="hidden" name="record_id[]" value="{$vo.id}">
                          
                          <input type="radio" name="pingjia_status[{$vo.id}]" id="pingjia_status1" value="1" <if condition="$vo.pingjia_status == 1"> checked </if> >
                          <label for="pingjia_status1" style="margin-right:40px;">好评</label>
                          
                          <input type="radio" name="pingjia_status[{$vo.id}]" id="pingjia_status2" value="2" <if condition="$vo.pingjia_status == 2"> checked </if> >
                          <label for="pingjia_status2" style="margin-right:40px;">中评</label>
                          
                          <input type="radio" name="pingjia_status[{$vo.id}]" id="pingjia_status3" value="3" <if condition="$vo.pingjia_status == 3"> checked </if> >
                          <label for="pingjia_status3">差评</label>
                        </div>

                        <textarea name="pingjia_content[{$vo.id}]" style="width:80%; height:100px; padding:2px;" <if condition="$vo.pingjia_content != ''"> readonly="readonly" </if> placeholder="字数限制100字以内">{$vo.pingjia_content}</textarea>
                        
                      </div>
                </foreach>

                      <div style="text-align:center;">
                        
                        <input type="submit" name="button" id="button" style="width:200px; height:30px; text-align:center; " value="提交评论">
                        
                      </div>
                   
            </form>



</div>





<include file="Public:footer_orders" />



<script>
  function del(a){
    $.ajax({
      data:"id="+a,
      type:"POST",
      url:"{:U('Order/cancel_order')}",
      success:function(msg){
       if(msg == 1){
          parent.layer.msg('操作成功',{icon:1,time:1000},function(){
            window.location.reload();
          });
       }else{
          parent.layer.msg('操作失败',{icon:2,time:2000})
       }

      }
    });
  }
</script>
<script>
  function show_info(a,b){
    parent.layer.open({
      type: 2,
      shadeClose: true,
      shade: 0.2,
      area: ['325px', '480px'],
      title: '查询快递单号',
      content: '__ROOT__/kuaidi/get.php?com='+a+'&nu='+b,
    });
  }             
</script>
</div>
</section>
</body>
</html>
